package com.marktim.pokerpoker.util;

public class GameSettings {

	private static GameSettings instance;

	private String name;
	private int maxPlayers;
	private int[] chipValues;
	private int[] chipCount;
	private int smallBlind;
	private int bigBlind;
	private boolean increaseBlinds;
	
	private GameSettings() {
	}

	public static GameSettings getInstance() {
		if (instance == null) {
			instance = new GameSettings();
		}

		return instance;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getMaxPlayers() {
		return maxPlayers;
	}

	public void setMaxPlayers(int maxPlayers) {
		this.maxPlayers = maxPlayers;
	}

	public int[] getChipValues() {
		return chipValues;
	}

	public void setChipValues(int[] chipValues) {
		this.chipValues = chipValues;
	}

	public int[] getChipCount() {
		return chipCount;
	}

	public void setChipCount(int[] chipCount) {
		this.chipCount = chipCount;
	}

	public int getSmallBlind() {
		return smallBlind;
	}

	public void setSmallBlind(int smallBlind) {
		this.smallBlind = smallBlind;
	}

	public int getBigBlind() {
		return bigBlind;
	}

	public void setBigBlind(int bigBlind) {
		this.bigBlind = bigBlind;
	}

	public boolean isIncreaseBlinds() {
		return increaseBlinds;
	}

	public void setIncreaseBlinds(boolean increaseBlinds) {
		this.increaseBlinds = increaseBlinds;
	}

	public static int calculateSmallBlind(int seekBarProgress) {
		seekBarProgress++;
		return seekBarProgress * seekBarProgress;
	}
	
	public static int calculateBigBlind(int seekBarProgress) {
		seekBarProgress++;
		return seekBarProgress * seekBarProgress * 2;
	}
}
